import { DataInterface, LoginInterface } from '#/api'
import request from '@/utils/request'

/**
 * 登录
 * @param {LoginInterface} data
 * @returns
 */
export const LoginApi = (data: LoginInterface): Promise<DataInterface> => {
  return request({
    url: '/login',
    method: 'POST',
    data
  })
}
